package behavior.strategy;

/**
 * Created by lie on 2017/11/2.
 * 一个咕咕的战斗
 */
public class TestGuGu {

    public static void main(String[] args){
        //遇到一个小怪
        Context context;
        context = new Context(new WeakFightingStrategy());
        context.fighting();

        //遇到一片小怪
        context = new Context(new CommonFightingStrategy());
        context.fighting();

        //遇到一个法爷
        context = new Context(new StrongFightingStrategy());
        context.fighting();
    }
}
